{include file="layout/header" title="分红设置" /}
<style>
    .layui-inline { width: 30%; }
</style>
<div class="view-body">
    {include file="layout/menu" /}
    <div class="view-product">
        <div class="company_identify">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">
                    分红设置
                </h6>
            </div>
            <div class="layui-lr-20 clearfix">
                <form action="{:url('admin/Config/save',['key'=>'abonus'])}" class="layui-form" method="post" name="abonusForm">
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>主账户</legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">最多拥有</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="main_cap" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">个主账户</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">激活价格</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="main_price" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">激活1个主账户的价格</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">市场分红</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="main_out" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">主账户分红满X出局</div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">直推奖励</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="main_invite" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">奖励推荐人X元</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">慈善基金</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="main_charity" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">用于线下活动</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">分红基金</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="main_abonus" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">用于市场每日分红</div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <!-- 子账户 -->
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>子账户</legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label"></label>
                                    <div class="layui-input-inline" style="width: 50px;">
                                        <input type="checkbox" name="son_switch" lay-skin="switch" lay-text="开启|关闭" value="1">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">开启后主账户需全部激活之后才可以购买子账户</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">购买奖励</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_game" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">奖励购买者X游戏币</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">购买奖励</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_shopping" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">奖励购买者X购物币</div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">最多拥有</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_cap" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">个子账户</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">激活价格</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_price" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">激活1子账户的价格</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">市场分红</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_out" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">子账户分红满X出局</div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">直推奖励</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_invite" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">奖励推荐人X元</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">慈善基金</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_charity" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">用于线下活动</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">分红基金</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="son_abonus" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">用于市场每日分红</div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>奖励发放</legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label"></label>
                                    <div class="layui-input-inline" style="width: 50px;">
                                        <input type="checkbox" name="is_abonus" lay-skin="switch" lay-text="开启|关闭" value="1">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">开启每日自动分红。</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">随机奖励</label>
                                    <div class="layui-input-inline" style="width: 50px;">
                                        <input type="text" name="min_rand" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">-</div>
                                    <div class="layui-input-inline" style="width: 50px;">
                                        <input type="text" name="max_rand" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">主账户子账户每日分红。</div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">累计分红</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="full_money" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">可以兑换提现币</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">累计分红</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="full_recharge" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">可以兑换充值币</div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">累计推荐</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="invite_money" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">可以兑换提现币</div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">累计推荐</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="invite_recharge" placeholder="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">可以兑换充值币</div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <div class="layui-form-item">
                        <div class="layui-input-block" style="margin-left: 80px;">
                            <button class="layui-btn layui-btn-normal" lay-filter="" lay-submit="">
                                确定
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var formObj = new Form('abonusForm');
      formObj.init({$abonus});
</script>
{include file="layout/footer" /}
